package cn.cqsztech.array;

import java.lang.reflect.Array;
import java.util.List;
import java.util.Optional;

/**
 * ccmars
 * 2022/3/30
 **/
public class ArrayLengthTest {
    public static void main(String[] args) {
        List a = null;
        Optional first = a.stream().findFirst();
        if (first.isPresent()) {
            System.out.println(1);
        }
        System.out.println(Array.getLength(a));
    }
}
